<?php
	require_once("../../../include/connect.php");
	
	if(isset($_GET['id']))
	{
		$id = $_GET['id'];
		
		$query = mysql_query(" DELETE FROM teachers WHERE id = '$id' ");
		
		if ($query)
			header("Location:../index.php?p=lst_tea");
		else 
			echo "Failed on delete: ";
	}
?>